﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net;
using System.Text;

namespace KjxingTools
{
    class PortUserInfo
    {
        /// <summary>
        /// 端口协议类型,TCP,UDP等
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 端口状态
        /// </summary>
        public string State { get; set; }
        /// <summary>
        /// 本地终端地址
        /// </summary>
        public string LocolEndPoint { get; set; }
        /// <summary>
        /// 本地IP
        /// </summary>
        public IPAddress LocolIPAddress { get; set; }
        /// <summary>
        /// 本地端口
        /// </summary>
        public int LocolPort { get; set; }
        /// <summary>
        /// 远程终端地址
        /// </summary>
        public string RemoteEndPoint { get; set; }
        /// <summary>
        /// 占用端口的进程ID
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 占用端口的进程
        /// </summary>
        public Process Process { get; set; }
        /// <summary>
        /// 占用端口的进程进程名
        /// </summary>
        public string ProcessName { get; set; }
    }
}
